package com.dly.blog.domain.ro;

import com.dly.blog.enums.FreeType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GetCodeRO {

    @Schema(description = "次数")
    @Min(value = 1, message = "最小次数为1")
    private Integer frequency;

    @Schema(description = "类型")
    @NotNull
    private FreeType freeType;
}
